const userDao = require("../dao/userDao");
let userContrl = {
  register(req, res) {
    let uname = req.body.uname;
    let upwd = req.body.upwd;
    let userArr = [uname, upwd];
    userDao.checkUserLogin(userArr, function (err, data) {
      if (data.length) {
        res.send("login success");
      } else {
        res.send("login failure");
      }
    });
  },
  login(req, res) {
    res.send("welcome");
    console.log(11);
    console.log(req.query);
  },
};
module.exports = userContrl;
